package com.my.dao;

import java.io.Serializable;
import java.util.List;

import com.my.entity.BasicModel;

public interface DAO<T extends BasicModel> {
	public void create(T t);

	void delete(T t);

	void update(T t);

	T get(Class<T> t, Serializable id);

	Integer updateByHQL(String hql, Object... params);

	List queryByHQL(String hql, Object... params);
}
